package org.dreamwork.jasmine2.web.controls.datagrid;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-10-14
 * Time: 16:23:18
 */
public enum Position {
    Top, Bottom;

    public static Position parse (String text) {
        if (Top.toString ().equalsIgnoreCase (text)) return Top;
        if (Bottom.toString ().equalsIgnoreCase (text)) return Bottom;
        throw new IllegalArgumentException ("Unknown Position: " + text);
    }
}